package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);


    /**
     * 根据分类id查询菜品
     * @param categoryId
     * @return
     */
    List<Dish> list(Long categoryId);


    //添加菜品
    void saveWithFlavor(DishDTO dishDTO);

    //分页查询
    PageResult page(DishPageQueryDTO dishPageQueryDTO);

    //批量删除
    void delete(List<Long> ids);

    DishVO dishById(Long id);

    void updateDish(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);
}
